package hongcaosp.app.android.contact;

import android.view.View;
import android.widget.TextView;

import hongcaosp.app.android.R;

public class EmptyLayoutHelper {
    private View layout;
    private TextView titleTV,desTV;

    public EmptyLayoutHelper(View layout) {
        this.layout = layout;
        titleTV = layout.findViewById(R.id.title_tv);
        desTV = layout.findViewById(R.id.des_tv);
    }

    public void init(String title,String des) {
        titleTV.setText(title);
        desTV.setText(des);
    }

    public void show() {
        this.layout.setVisibility(View.VISIBLE);
    }

    public void hide() {
        this.layout.setVisibility(View.GONE);
    }
}
